import axios from '@/plugins/axios'

export function getAllMenus (params) {
  return axios.get('/api/menus', params)
}

export function getMenuDetail (id, params) {
  return axios.get('/api/menus/' + id, params)
}

export function createMenu (params) {
  return axios.post('/api/menus', params)
}

export function updateMenu (id, params) {
  return axios.put('/api/menus/' + id, params)
}

export function deleteMenu (id, params) {
  return axios.delete('/api/menus/' + id, params)
}
